package com.wbp.cms.client.project.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.wbp.cms.client.common.BaseDO;


/**
 * @Description:
 * @Department:
 * @author andy.lhc
 * @date 2016年3月9日 下午2:05:05
 */
public class ProjectProfitDO extends BaseDO {

  /**
   * 
   */
  private static final long serialVersionUID = 1981912729338063555L;

  private Long id;

  private Date createTime;

  private Date updateTime;
  
  private Long projectId ;
  
  private Date  startTime ;
  
  private Date  endTime ;
  
  private  int  runningDate ;
  
  private BigDecimal  preAmount ;
  
  private  String  comments ;
  
  private  int version ; 
  
  private Long  userId ;
  
  /* private List<ProjectWorkOrderDO> projectWorkOrderList ;
   
   private List<ProjectProfitDO>   projectProfitList ;

   private  ContractDO  contract ; */
   
   
  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public Date getCreateTime() {
    return createTime;
  }

  public void setCreateTime(Date createTime) {
    this.createTime = createTime;
  }

  public Date getUpdateTime() {
    return updateTime;
  }

  public void setUpdateTime(Date updateTime) {
    this.updateTime = updateTime;
  }

  public Long getProjectId() {
    return projectId;
  }

  public void setProjectId(Long projectId) {
    this.projectId = projectId;
  }

  public Date getStartTime() {
    return startTime;
  }

  public void setStartTime(Date startTime) {
    this.startTime = startTime;
  }

  public Date getEndTime() {
    return endTime;
  }

  public void setEndTime(Date endTime) {
    this.endTime = endTime;
  }

  public int getRunningDate() {
    return runningDate;
  }

  public void setRunningDate(int runningDate) {
    this.runningDate = runningDate;
  }

  public BigDecimal getPreAmount() {
    return preAmount;
  }

  public void setPreAmount(BigDecimal preAmount) {
    this.preAmount = preAmount;
  }

  public String getComments() {
    return comments;
  }

  public void setComments(String comments) {
    this.comments = comments;
  }

  public int getVersion() {
    return version;
  }

  public void setVersion(int version) {
    this.version = version;
  }

  public Long getUserId() {
    return userId;
  }

  public void setUserId(Long userId) {
    this.userId = userId;
  }
  

  /*public List<ProjectWorkOrderDO> getProjectWorkOrderList() {
    return projectWorkOrderList;
  }

  public void setProjectWorkOrderList(List<ProjectWorkOrderDO> projectWorkOrderList) {
    this.projectWorkOrderList = projectWorkOrderList;
  }
  
  public void addProjectWorkOrder(ProjectWorkOrderDO  projectWorkOrderDO ){
    if(projectWorkOrderList == null )
      projectWorkOrderList = Lists.newArrayList() ;
    if( !projectWorkOrderList.contains(projectWorkOrderDO))
      projectWorkOrderList.add(projectWorkOrderDO) ;
  }

  public List<ProjectProfitDO> getProjectProfitList() {
    return projectProfitList;
  }

  public void setProjectProfitList(List<ProjectProfitDO> projectProfitList) {
    this.projectProfitList = projectProfitList;
  }

  public void addProjectProfit(ProjectProfitDO projectProfitDO){
    if(projectProfitList == null)
      projectProfitList = Lists.newArrayList() ;
    if(!projectProfitList.contains(projectProfitDO)) 
      projectProfitList.add(projectProfitDO) ;
  }

  public ContractDO getContract() {
    return contract;
  }

  public void setContract(ContractDO contract) {
    this.contract = contract;
  }*/
 
}
